<?php defined('SYSPATH') or die('No direct script access.');

abstract class Controller_Common extends Controller_Template {
    
    public $template = 'static/common';   
    public function before()
    {
        parent::before();
        View::set_global('title', 'Школа');				
        View::set_global('description', 'Сайт');
        $up = View::factory('static/up');
        $this->template->up = $up;
        $this->template->down = '';
        $this->template->content = '';
        $this->template->sidebar = '';
        $this->template->error = '';
        
        $this->template->styles = array('foundation', 'main', 'normalize');   
        $this->template->scripts = array('http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js', 'public/js/vendor/placeholder.js','public/js/vendor/modernizr.js', 'public/vendor/js/jquery.cookie.js','public/js/vendor/jquery.js','public/js/vendor/fastclick.js', 'public/js/foundation.min.js' );  
    }
    
} // End Common